/* Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */
.code-fence-highlighter-copy-button {
  display: flex;
  position: absolute;
  float: left;
  margin-left: -1em;
  margin-top: -1em;
}

.code-fence-highlighter-copy-button-icon {
  visibility: hidden;
  max-width: 1em;
}

.code-fence:hover .code-fence-highlighter-copy-button-icon {
  visibility: visible;
  /*noinspection CssUnknownTarget*/
  content: url("copy-button-copy-icon.png");
}

.code-fence:hover .code-fence-highlighter-copy-button:hover .code-fence-highlighter-copy-button-icon {
  /*noinspection CssUnknownTarget*/
  content: url("copy-button-copy-icon-hovered.png");
  cursor: pointer;
}

.code-fence-highlighter-copy-button .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: rgba(85, 85, 85, 0.4);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 2px 0;
  position: absolute;
  font-size: 10px;

  z-index: 1;
  top: -4px;
  left: 120%;

  opacity: 0;
  transition: opacity 0.3s;
}

.code-fence-highlighter-copy-button:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
